#ifndef CLIENT_H
#define CLIENT_H

#include <iostream>
#include <sstream>
#include <string>

#include "Net.h"
#include "../src/chipmunk.h"
#define MESHPORT 30000
#define PROTOCOLID 0x12341234
#define DELTATIME 0.001f
#define SENDRATE 0.001f
#define TIMEOUT 100.0f

class Client {
    public:
        Client(int a0 = 127, int a1 = 0, int a2 = 0, int a3 = 1){
            ip_[0] = a0;
            ip_[1] = a1;
            ip_[2] = a2;
            ip_[3] = a3;
        }
        void sendpacket(const unsigned char* inpacket);
        void receivepacket(unsigned char* packet);
        int init();
        void shutdown();
        cpVect stringToVect(const unsigned char* in);
    private: 
        bool isConnected_;
        net::Node *pNode_;
        int ip_[4];
};

#endif
